casper.start('https://www.baidu.com/', function() {
    this.test.assertExists({
        type: 'xpath',
        path: '//*[@class="s_form"]'
    }, 'the element exists');
    this.test.assertExists(x('//*[@class="s_form"]'), 'the element xpath exists')
});